import Vue from 'vue'
import Vuex from 'vuex'
import Classes from './modules/classes/classes.js'
import Course from './modules/course/course.js'

const isDev = process.env.NODE_ENV === 'development'
Vue.use(Vuex)

export default () => {
  const store = new Vuex.Store({
    strict: isDev,
    modules: {
      Classes,
      Course
    }
  })
  return store
}
